package com.gzdh.tang.modu.mapper;

import com.gzdh.tang.modu.entity.SysUser;
import com.gzdh.tang.modu.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface OperaMapper {

    @Select("select * from SYS_USER where BH=#{id}")
    SysUser getSysUser(@Param("id") String id);

    @Select("select * from SYS_USER")
    List<SysUserVo>getSysUserVo();

    @Select("select bh,xm as name,group1 as role from SYS_USER where addr = #{addr}")
    List<Map<String, Object>> getUserList(@Param("addr") String addr);
}
